<template>
  <UParse v-if="content" :content="content" :imageProp="imageProp" :noData="noData" />
  <Empty v-else />
</template>

<script setup lang="ts">
  import { propTypes } from '@/utils/propTypes';
  import { reactive } from 'vue';
  import UParse from '../uParse/src/wxParse.vue';
  import Empty from '../Empty/Empty.vue';

  defineProps({
    content: propTypes.string.def(''),
    noData: propTypes.string.def('暂无内容'),
  });

  const imageProp = reactive({
    lazyLoad: true,
    mode: 'widthFix',
  });
</script>

<style lang="scss" scoped></style>
